home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 4076 / 4076.xpi / chrome / addthis.jar / content / preferences.xul < prev    next >
Encoding:
Extensible Markup Language  |  2010-01-06  |  10.4 KB  |  153 lines

  1. <?xml version="1.0"?>
  2. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
  3. <?xml-stylesheet href="chrome://browser/skin/preferences/preferences.css" type="text/css"?>
  4. <?xml-stylesheet href="chrome://addthis/skin/preferences.css" type="text/css"?>
  5. <!DOCTYPE prefwindow SYSTEM "chrome://addthis/locale/addthis.dtd">
  6. <prefwindow
  7.         id="at_preferencesWindow"
  8.         title="&addthis.preferences.title;"
  9.         buttons="accept"
  10.         onload="AddThis_Preferences.initPreferences();window.sizeToContent();"
  11.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  12.             
  13.     <script type="application/x-javascript" src="Constants.js"/>
  14.     <script type="application/x-javascript" src="Util.js"/>
  15.     <script type="application/x-javascript" src="Preferences.js"/>
  16.     <script type="application/x-javascript" src="Search.js"/>
  17.     <script type="application/x-javascript" src="MainButton.js"/>
  18.     <script type="application/x-javascript" src="Sharing.js"/>
  19.     <script type="application/x-javascript" src="Toolbar.js"/>
  20.     <script type="application/x-javascript" src="UrlBar.js"/>
  21.  
  22.     <command id="at-cmd-update-serviceprefs" oncommand="AddThis_Preferences.updateServicePrefs();" />
  23.     <command id="at-cmd-update-showbutton" oncommand="AddThis_Preferences.updateButtonPref();" />
  24.     <command id="at-cmd-update-showurlbar" oncommand="AddThis_Preferences.updateUrlbarPref();" />
  25.     <command id="at-cmd-update-showtoolbar" oncommand="AddThis_Preferences.updateToolbarPref();" />
  26.     <command id="at-cmd-update-toolbarstyle" oncommand="AddThis_Preferences.updateToolbarButtonStylePref()" />
  27.     <command id="at-cmd-set-defaultsearch" oncommand="AddThis_Preferences.setDefaultSearch();AddThis_Preferences.setAddThisSearchButton(true);" />
  28.     <command id="at-cmd-reset-defaultsearch" oncommand="AddThis_Preferences.resetDefaultSearch();AddThis_Preferences.setAddThisSearchButton(false);" />
  29.  
  30.     <prefpane id="at_prefpane"> 
  31.         <tabbox>
  32.             <tabs>
  33.                 <tab label="&addthis.preferences.servicetab.label;" />
  34.                 <tab label="&addthis.preferences.othertab.label;" />
  35.             </tabs>
  36.             <tabpanels>
  37.                 <tabpanel>
  38.                     <preferences>
  39.                         <preference id="at-preference-services-personal" name="extensions.addthis.service.personal" type="string" />
  40.                     </preferences>
  41.                     
  42.                     <vbox>
  43.                         <label value="&addthis.preferences.servicetab.text;" />
  44.                         <spacer height="10" />
  45.                         <grid flex="1">
  46.                             <columns>
  47.                                 <column flex="1" />
  48.                                 <column />
  49.                                 <column flex="1" />
  50.                             </columns>
  51.                             
  52.                             <rows>
  53.                                 <row>
  54.                                     <label class="listhead">Available Services</label>
  55.                                     <label />
  56.                                     <label class="listhead">Selected Services</label>
  57.                                 </row>
  58.                                 <row>
  59.                                     <hbox>
  60.                                         <hbox align="center">
  61.                                             <label value="Filter:" control="at_prefs_filtername" /> 
  62.                                             <textbox id="at_prefs_filtername" type="timed" timeout="500" oncommand="AddThis_Preferences.filterServices();" />
  63.                                         </hbox>
  64.                                         <button id="at_prefs_filtercat" type="menu" tooltiptext="&addthis.preferences.filtercat.tooltip;">
  65.                                             <menupopup id="at_prefs_filtercat_menu" position="after_end" oncommand="AddThis_Preferences.filterServices(event);">
  66.                                                 <menuitem name="filtercat" type="radio" value="" label="All Categories" checked="true" />
  67.                                                 <menuseparator />
  68.                                                 <menuitem name="filtercat" type="radio" value="BOOKMARKING" label="Bookmarking Site" />
  69.                                                 <menuitem name="filtercat" type="radio" value="BLOG" label="Blogging platform" />
  70.                                                 <menuitem name="filtercat" type="radio" value="CMS" label="CMS platform" />
  71.                                                 <menuitem name="filtercat" type="radio" value="FORUM" label="Forum" />
  72.                                                 <menuitem name="filtercat" type="radio" value="SOCIAL_NEWS" label="Social News" />
  73.                                                 <menuitem name="filtercat" type="radio" value="SOCIAL_NETWORK" label="Social Network" />
  74.                                                 <menuitem name="filtercat" type="radio" value="TOOLS" label="Tools" />
  75.                                                 <menuitem name="filtercat" type="radio" value="OTHER" label="Other" />
  76.                                             </menupopup>
  77.                                         </button>
  78.                                     </hbox>
  79.                                     <label />
  80.                                     <label>The following will appear in your toolbar:</label>
  81.                                 </row>
  82.                                 <row>
  83.                                     <listbox class="service-list" flex="1" id="at_prefs_list_all" rows="20" seltype="multiple" onselect="AddThis_Preferences.allListSelect();" ondblclick="AddThis_Preferences.addService();" onfocus="AddThis_Preferences.blurList('active');" />
  84.                                     <vbox pack="center">
  85.                                         <button id="btnAdd" oncommand="AddThis_Preferences.addService();" label="Add ▶" disabled="true" />
  86.                                         <button id="btnRemove" oncommand="AddThis_Preferences.removeService();" label="◀ Remove" disabled="true" />
  87.                                         <separator />
  88.                                         <button id="btnReset" oncommand="AddThis_Preferences.resetServicePrefs();" label="Reset" />
  89.                                     </vbox>
  90.                                     <hbox flex="1">
  91.                                         <listbox class="service-list" flex="1" id="at_prefs_list_active" rows="20" seltype="multiple" onselect="AddThis_Preferences.activeListSelect();" ondblclick="AddThis_Preferences.removeService();" onfocus="AddThis_Preferences.blurList('all');" />
  92.                                         <vbox class="listorder" pack="center">
  93.                                             <button id="btnUp" oncommand="AddThis_Preferences.moveServiceUp();" label="▲" disabled="true" />
  94.                                             <button id="btnDown" oncommand="AddThis_Preferences.moveServiceDown();" label="▼" disabled="true" />
  95.                                         </vbox>
  96.                                     </hbox>
  97.                                 </row>
  98.                             </rows>
  99.                         </grid>
  100.                         
  101.                         <spacer height="5" />
  102.                         <description>Don't see your favorite service? <label class="text-link" href="http://www.addthis.com/services/submit">Submit it to our Service Directory.</label></description>
  103.                         <listbox id="at_prefs_list_hidden" hidden="true" />
  104.                     </vbox>
  105.                 </tabpanel>
  106.                 <tabpanel>
  107.                     <preferences>
  108.                         <preference id="at-preference-disable-contextmenu" name="extensions.addthis.contextmenu.disable" inverted="true" type="bool" />
  109.                     </preferences>
  110.                     
  111.                     <vbox>
  112.                         <label value="&addthis.preferences.othertab.text;" />
  113.                         <separator orient="horizontal"/>
  114.                         <vbox class="at_prefs_optionlist">
  115.                             <checkbox id="at_prefs_showtoolbar" command="at-cmd-update-showtoolbar" label="&addthis.preferences.showtoolbar.label;" />
  116.                             <radiogroup id="at_prefs_toolbarstyle" orient="horizontal">
  117.                                 <radio value="icons" label="Icons" command="at-cmd-update-toolbarstyle" />
  118.                                 <radio value="text" label="Text" command="at-cmd-update-toolbarstyle" />
  119.                                 <radio value="full" label="Icons + Text" command="at-cmd-update-toolbarstyle" />
  120.                             </radiogroup>
  121.                             <checkbox id="at_prefs_showbutton" command="at-cmd-update-showbutton" label="&addthis.preferences.showbutton.label;" />
  122.                             <checkbox preference="at-preference-disable-contextmenu" label="&addthis.preferences.showcontextmenu.label;" />
  123.                             <checkbox id="at_prefs_showurlbar" command="at-cmd-update-showurlbar" label="&addthis.preferences.showurlbar.label;" />
  124.                         </vbox>
  125.                         
  126.                         <separator orient="horizontal" />
  127.                         
  128.                         <vbox id="at_prefs_search_container">
  129.                             <label value="&addthis.preferences.search.header;" />
  130.                             <separator orient="horizontal" />
  131.                             
  132.                             <vbox class="at_prefs_optionlist">
  133.                                 <hbox align="center">
  134.                                     <button id="at_prefs_search_addthis" command="at-cmd-set-defaultsearch" label="&addthis.preferences.search.buttonname;" />
  135.                                     <label value="&addthis.preferences.search.buttonlabel;" />
  136.                                 </hbox>
  137.                                             
  138.                                 <hbox align="center">
  139.                                     <button command="at-cmd-reset-defaultsearch" label="&addthis.preferences.search.reset;" />
  140.                                     <label value="&addthis.preferences.search.resetlabel;" />
  141.                                 </hbox>
  142.                             </vbox>
  143.                         </vbox>
  144.                         
  145.                     </vbox>
  146.                 
  147.                 </tabpanel>
  148.             </tabpanels>
  149.         </tabbox>
  150.     </prefpane>
  151.  
  152. </prefwindow>
  153.